//获取当前时间
/**
 * type：0：时间戳格式； 1: 当前年月日
**/
export function getNowTime(type = 1){
	
	if(type == 0){
		let time = new Date().valueOf()
		return time
	}else if(type == 1){
		let time = new Date()
		let year = time.getFullYear()
		let month = time.getMonth() +1
		let day = time.getDate()
		return `${year}-${month}=${day}`
	}
}